﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Windows;
using GnToolControls.Convert;

namespace GnToolControls
{
	public partial class ResourceConvert : GnToolMain.LockPane
	{
		private void SelectFileFolder( object sender, RoutedEventArgs e )
		{
		}

		private void ApplyFileConvert( object sender, RoutedEventArgs e )
		{
			if( InvalidFileConvert() == false )
				return;

			ConvertFileItem item = new ConvertFileItem( tBoxBefore.Text, tBoxAfter.Text );
			ConvertComposedcs.AddSource( item );
			if( this.tBoxFolderSelect.Text.Length > 0 )
			{
			}
		}

		private bool InvalidFileConvert()
		{
			if( this.tBoxAfter.Text.Length > 0 || this.tBoxBefore.Text.Length > 0 )
				return true;

			return false;
		}
	}
}
